Skip to content

[3.7] bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916)#9970

Merged
ericvsmith merged 1 commit intopython:3.7from
miss-islington:backport-dd13c88-3.7
Oct 19, 2018
Merged

[3.7] bpo-33947: dataclasses no longer can raise RecursionError in repr (GF9916)#9970
ericvsmith merged 1 commit intopython:3.7from
miss-islington:backport-dd13c88-3.7

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Oct 19, 2018

The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
(cherry picked from commit dd13c88)

Co-authored-by: Srinivas Thatiparthy (శ్రీనివాస్ తాటిపర్తి) srinivasreddy@users.noreply.github.com

https://bugs.python.org/issue33947

…9916)

The reprlib code was copied here instead of importing reprlib. I'm not sure if we really need to avoid the import, but since I expect dataclasses to be more common that reprlib, it seems wise. Plus, the code is small.
(cherry picked from commit dd13c88)

Co-authored-by: Srinivas  Thatiparthy (శ్రీనివాస్  తాటిపర్తి) <srinivasreddy@users.noreply.github.com>
@miss-islington
Copy link
Copy Markdown
Contributor Author

@srinivasreddy and @ericvsmith: Status check is done, and it's a success ✅ .

1 similar comment
@miss-islington
Copy link
Copy Markdown
Contributor Author

@srinivasreddy and @ericvsmith: Status check is done, and it's a success ✅ .

@ericvsmith ericvsmith merged commit b9182aa into python:3.7 Oct 19, 2018
@bedevere-bot
Copy link
Copy Markdown

@ericvsmith: Please replace # with GH- in the commit message next time. Thanks!

@miss-islington miss-islington deleted the backport-dd13c88-3.7 branch October 19, 2018 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants